//
//  CalenderCell.m
//  CalenderDemo
//
//  Created by wr on 2018/7/20.
//  Copyright © 2018年 stzen. All rights reserved.
//

#import "CalenderCell.h"

@interface CalenderCell()
@end

@implementation CalenderCell

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self setupUI];
    }
    return self;
}

- (void)setupUI {
    self.dateLabel = [[CalenderLabel alloc] initWithFrame:CGRectMake(0, 0, self.bounds.size.width, self.bounds.size.width)];
    self.dateLabel.backgroundColor = [UIColor whiteColor];
    self.dateLabel.font = [UIFont systemFontOfSize:16.f];
    self.dateLabel.textAlignment = NSTextAlignmentCenter;
    [self addSubview:self.dateLabel];
}

#pragma mark - Setter

- (void)setSelected:(BOOL)selected {
    _dateLabel.isSelected = selected;
}

- (void)setIsCurrentDay:(BOOL)isCurrentDay {
    _dateLabel.isCurrentDay = isCurrentDay;
}


@end
